﻿<span style='font-size:11px; color:#000000; background:#ffffff; '><pre>
<span style='color:#800000; font-weight:bold; '>protected</span> <span style='color:#800000; font-weight:bold; '>void</span> createPdfButton_Click<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>object</span> sender<span style='color:#808030; '>,</span> EventArgs e<span style='color:#808030; '>)</span>
<span style='color:#800080; '>{</span>
    <span style='color:#696969; '>// Create a PDF document</span>
    Document pdfDocument <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> Document<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

    <span style='color:#696969; '>// Set license key received after purchase to use the converter in licensed mode</span>
    <span style='color:#696969; '>// Leave it not set to use the converter in demo mode</span>
    pdfDocument<span style='color:#808030; '>.</span>LicenseKey <span style='color:#808030; '>=</span> <span style='color:#800000; '>"</span><span style='color:#0000e6; '>4W9+bn19bn5ue2B+bn1/YH98YHd3d3c=</span><span style='color:#800000; '>"</span><span style='color:#800080; '>;</span>

    <span style='color:#800000; font-weight:bold; '>try</span>
    <span style='color:#800080; '>{</span>
        <span style='color:#696969; '>// The result of adding elements to PDF document</span>
        AddElementResult addElementResult <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>null</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// The titles font used to mark various sections of the PDF document</span>
        PdfFont titleFont <span style='color:#808030; '>=</span> pdfDocument<span style='color:#808030; '>.</span>AddFont<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>new</span> Font<span style='color:#808030; '>(</span><span style='color:#800000; '>"</span><span style='color:#0000e6; '>Times New Roman</span><span style='color:#800000; '>"</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>12</span><span style='color:#808030; '>,</span> FontStyle<span style='color:#808030; '>.</span>Bold<span style='color:#808030; '>,</span> GraphicsUnit<span style='color:#808030; '>.</span>Point<span style='color:#808030; '>)</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// The position on X anf Y axes where to add the next element</span>
        <span style='color:#800000; font-weight:bold; '>float</span> yLocation <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        <span style='color:#800000; font-weight:bold; '>float</span> xLocation <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Create a PDF page in PDF document</span>
        PdfPage pdfPage <span style='color:#808030; '>=</span> pdfDocument<span style='color:#808030; '>.</span>AddPage<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Line Elements</span>

        <span style='color:#696969; '>// Add section title</span>
        TextElement titleTextElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> TextElement<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#800000; '>"</span><span style='color:#0000e6; '>Line Elements</span><span style='color:#800000; '>"</span><span style='color:#808030; '>,</span> titleFont<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        titleTextElement<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Black<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>titleTextElement<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPageBounds<span style='color:#808030; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>10</span><span style='color:#800080; '>;</span>
        xLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPdfPage<span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add a line with default properties</span>
        LineElement lineElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> LineElement<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>lineElement<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add a bold line</span>
        LineElement boldLineElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> LineElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>110</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        boldLineElement<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>3</span><span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>boldLineElement<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add dotted line</span>
        LineElement dottedLineElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> LineElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>120</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>170</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        dottedLineElement<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineDashStyle <span style='color:#808030; '>=</span> LineDashStyle<span style='color:#808030; '>.</span>Dot<span style='color:#800080; '>;</span>
        dottedLineElement<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Green<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>dottedLineElement<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add a dashed line</span>
        LineElement dashedLineElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> LineElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>180</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>230</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        dashedLineElement<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineDashStyle <span style='color:#808030; '>=</span> LineDashStyle<span style='color:#808030; '>.</span>Dash<span style='color:#800080; '>;</span>
        dashedLineElement<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Green<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>dashedLineElement<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add a dash-dot-dot line</span>
        LineElement dashDotDotLineElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> LineElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>240</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>290</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        dashDotDotLineElement<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineDashStyle <span style='color:#808030; '>=</span> LineDashStyle<span style='color:#808030; '>.</span>DashDotDot<span style='color:#800080; '>;</span>
        dashDotDotLineElement<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Green<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>dashDotDotLineElement<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add a bold line with rounded cap style</span>
        LineElement roundCapBoldLine <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> LineElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>300</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>350</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        roundCapBoldLine<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        roundCapBoldLine<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineCapStyle <span style='color:#808030; '>=</span> LineCapStyle<span style='color:#808030; '>.</span>RoundCap<span style='color:#800080; '>;</span>
        roundCapBoldLine<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Blue<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>roundCapBoldLine<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add a bold line with projecting square cap style</span>
        LineElement projectingSquareCapBoldLine <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> LineElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>360</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>410</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        projectingSquareCapBoldLine<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        projectingSquareCapBoldLine<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineCapStyle <span style='color:#808030; '>=</span> LineCapStyle<span style='color:#808030; '>.</span>ProjectingSquareCap<span style='color:#800080; '>;</span>
        projectingSquareCapBoldLine<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Blue<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>projectingSquareCapBoldLine<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add a bold line with projecting butt cap style</span>
        LineElement buttCapBoldLine <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> LineElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>420</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>470</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        buttCapBoldLine<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        buttCapBoldLine<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineCapStyle <span style='color:#808030; '>=</span> LineCapStyle<span style='color:#808030; '>.</span>ButtCap<span style='color:#800080; '>;</span>
        buttCapBoldLine<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Blue<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>buttCapBoldLine<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPageBounds<span style='color:#808030; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>3</span><span style='color:#800080; '>;</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPdfPage<span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Line Join Styles</span>

        <span style='color:#696969; '>// Add section title</span>
        xLocation <span style='color:#808030; '>-</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        yLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>10</span><span style='color:#800080; '>;</span>
        titleTextElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> TextElement<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#800000; '>"</span><span style='color:#0000e6; '>Line Join and Cap Styles</span><span style='color:#800000; '>"</span><span style='color:#808030; '>,</span> titleFont<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        titleTextElement<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Black<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>titleTextElement<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPageBounds<span style='color:#808030; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>10</span><span style='color:#800080; '>;</span>
        xLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPdfPage<span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add graphic path with miter join line style</span>
        PathElement miterJoinPath <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> PathElement<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        <span style='color:#696969; '>// Add path lines</span>
        miterJoinPath<span style='color:#808030; '>.</span>AddLineSegment<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>25</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        miterJoinPath<span style='color:#808030; '>.</span>AddLineSegment<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        <span style='color:#696969; '>// Set path style</span>
        miterJoinPath<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        miterJoinPath<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineCapStyle <span style='color:#808030; '>=</span> LineCapStyle<span style='color:#808030; '>.</span>ProjectingSquareCap<span style='color:#800080; '>;</span>
        miterJoinPath<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineJoinStyle <span style='color:#808030; '>=</span> LineJoinStyle<span style='color:#808030; '>.</span>MiterJoin<span style='color:#800080; '>;</span>
        miterJoinPath<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Coral<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>miterJoinPath<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add graphic path with round join line style</span>
        PathElement roundJoinPath <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> PathElement<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>70</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        <span style='color:#696969; '>// Add path lines</span>
        roundJoinPath<span style='color:#808030; '>.</span>AddLineSegment<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>95</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        roundJoinPath<span style='color:#808030; '>.</span>AddLineSegment<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>120</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        <span style='color:#696969; '>// Set path style</span>
        roundJoinPath<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        roundJoinPath<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineCapStyle <span style='color:#808030; '>=</span> LineCapStyle<span style='color:#808030; '>.</span>RoundCap<span style='color:#800080; '>;</span>
        roundJoinPath<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineJoinStyle <span style='color:#808030; '>=</span> LineJoinStyle<span style='color:#808030; '>.</span>RoundJoin<span style='color:#800080; '>;</span>
        roundJoinPath<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Coral<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>roundJoinPath<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add graphic path with bevel join line style</span>
        PathElement bevelJoinPath <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> PathElement<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>140</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        <span style='color:#696969; '>// Add lines to path</span>
        bevelJoinPath<span style='color:#808030; '>.</span>AddLineSegment<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>165</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        bevelJoinPath<span style='color:#808030; '>.</span>AddLineSegment<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>190</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        <span style='color:#696969; '>// Set path style</span>
        bevelJoinPath<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        bevelJoinPath<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineCapStyle <span style='color:#808030; '>=</span> LineCapStyle<span style='color:#808030; '>.</span>ButtCap<span style='color:#800080; '>;</span>
        bevelJoinPath<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineJoinStyle <span style='color:#808030; '>=</span> LineJoinStyle<span style='color:#808030; '>.</span>BevelJoin<span style='color:#800080; '>;</span>
        bevelJoinPath<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Coral<span style='color:#800080; '>;</span>
        <span style='color:#696969; '>// Add element to document</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>bevelJoinPath<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add a polygon with miter join line style</span>
        PointF<span style='color:#808030; '>[</span><span style='color:#808030; '>]</span> polygonPoints <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>[</span><span style='color:#808030; '>]</span><span style='color:#800080; '>{</span> 
                        <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>210</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span>  
                        <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>235</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>,</span> 
                        <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>260</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#800080; '>}</span><span style='color:#800080; '>;</span>
        PolygonElement miterJoinPolygon <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> PolygonElement<span style='color:#808030; '>(</span>polygonPoints<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        <span style='color:#696969; '>// Set polygon style</span>
        miterJoinPolygon<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        miterJoinPolygon<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineJoinStyle <span style='color:#808030; '>=</span> LineJoinStyle<span style='color:#808030; '>.</span>MiterJoin<span style='color:#800080; '>;</span>
        miterJoinPolygon<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Green<span style='color:#800080; '>;</span>
        miterJoinPolygon<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>AliceBlue<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>miterJoinPolygon<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add a polygon with round join line style</span>
        polygonPoints <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>[</span><span style='color:#808030; '>]</span><span style='color:#800080; '>{</span> 
                        <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>280</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span>  
                        <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>305</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>,</span> 
                        <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>330</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#800080; '>}</span><span style='color:#800080; '>;</span>
        PolygonElement roundJoinPolygon <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> PolygonElement<span style='color:#808030; '>(</span>polygonPoints<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        <span style='color:#696969; '>// Set polygon style</span>
        roundJoinPolygon<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        roundJoinPolygon<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineJoinStyle <span style='color:#808030; '>=</span> LineJoinStyle<span style='color:#808030; '>.</span>RoundJoin<span style='color:#800080; '>;</span>
        roundJoinPolygon<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Green<span style='color:#800080; '>;</span>
        roundJoinPolygon<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Blue<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>roundJoinPolygon<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add a polygon with bevel join line style</span>
        polygonPoints <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>[</span><span style='color:#808030; '>]</span><span style='color:#800080; '>{</span> 
                        <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>350</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span>  
                        <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>375</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>,</span> 
                        <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>400</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#800080; '>}</span><span style='color:#800080; '>;</span>
        PolygonElement bevelJoinPolygon <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> PolygonElement<span style='color:#808030; '>(</span>polygonPoints<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        <span style='color:#696969; '>// Set polygon style</span>
        bevelJoinPolygon<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        bevelJoinPolygon<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineJoinStyle <span style='color:#808030; '>=</span> LineJoinStyle<span style='color:#808030; '>.</span>BevelJoin<span style='color:#800080; '>;</span>
        bevelJoinPolygon<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Green<span style='color:#800080; '>;</span>
        bevelJoinPolygon<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Blue<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>bevelJoinPolygon<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPageBounds<span style='color:#808030; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>3</span><span style='color:#800080; '>;</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPdfPage<span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add a Graphics Path Element</span>

        <span style='color:#696969; '>// Add section title</span>
        xLocation <span style='color:#808030; '>-</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        yLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>10</span><span style='color:#800080; '>;</span>
        titleTextElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> TextElement<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#800000; '>"</span><span style='color:#0000e6; '>Path Elements</span><span style='color:#800000; '>"</span><span style='color:#808030; '>,</span> titleFont<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        titleTextElement<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Black<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>titleTextElement<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPageBounds<span style='color:#808030; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>10</span><span style='color:#800080; '>;</span>
        xLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPdfPage<span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Create the path </span>
        PathElement graphicsPath <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> PathElement<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        <span style='color:#696969; '>// Add line and Bezier curve segments</span>
        graphicsPath<span style='color:#808030; '>.</span>AddLineSegment<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        graphicsPath<span style='color:#808030; '>.</span>AddBezierCurveSegment<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>,</span> <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>200</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span>
                        <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>250</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        graphicsPath<span style='color:#808030; '>.</span>AddLineSegment<span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>300</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        <span style='color:#696969; '>// Close path</span>
        graphicsPath<span style='color:#808030; '>.</span>ClosePath <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>true</span><span style='color:#800080; '>;</span>
        <span style='color:#696969; '>// Set path style</span>
        graphicsPath<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>3</span><span style='color:#800080; '>;</span>
        graphicsPath<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineJoinStyle <span style='color:#808030; '>=</span> LineJoinStyle<span style='color:#808030; '>.</span>MiterJoin<span style='color:#800080; '>;</span>
        graphicsPath<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineCapStyle <span style='color:#808030; '>=</span> LineCapStyle<span style='color:#808030; '>.</span>RoundCap<span style='color:#800080; '>;</span>
        graphicsPath<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Green<span style='color:#800080; '>;</span>
        <span style='color:#696969; '>//graphicsPath.BackColor = Color.Green;</span>
        graphicsPath<span style='color:#808030; '>.</span>Gradient <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> GradientColor<span style='color:#808030; '>(</span>GradientDirection<span style='color:#808030; '>.</span>Vertical<span style='color:#808030; '>,</span> System<span style='color:#808030; '>.</span>Drawing<span style='color:#808030; '>.</span>Color<span style='color:#808030; '>.</span>LightGreen<span style='color:#808030; '>,</span> System<span style='color:#808030; '>.</span>Drawing<span style='color:#808030; '>.</span>Color<span style='color:#808030; '>.</span>Blue<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        <span style='color:#696969; '>// Add element to document</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>graphicsPath<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPageBounds<span style='color:#808030; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>3</span><span style='color:#800080; '>;</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPdfPage<span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add Circle Elements</span>

        <span style='color:#696969; '>// Add section title</span>
        xLocation <span style='color:#808030; '>-</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        yLocation <span style='color:#808030; '>-</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>10</span><span style='color:#800080; '>;</span>
        titleTextElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> TextElement<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#800000; '>"</span><span style='color:#0000e6; '>Circle Elements</span><span style='color:#800000; '>"</span><span style='color:#808030; '>,</span> titleFont<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        titleTextElement<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Black<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>titleTextElement<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPageBounds<span style='color:#808030; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>10</span><span style='color:#800080; '>;</span>
        xLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPdfPage<span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add a Circle Element with default settings</span>
        CircleElement circleElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> CircleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>circleElement<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add dotted circle element</span>
        CircleElement dottedCircleElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> CircleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        dottedCircleElement<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Green<span style='color:#800080; '>;</span>
        dottedCircleElement<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineDashStyle <span style='color:#808030; '>=</span> LineDashStyle<span style='color:#808030; '>.</span>Dot<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>dottedCircleElement<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add a disc</span>
        CircleElement discElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> CircleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>170</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        discElement<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Green<span style='color:#800080; '>;</span>
        discElement<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>LightGray<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>discElement<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add disc with bold border</span>
        CircleElement discWithBoldBorder <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> CircleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>240</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        discWithBoldBorder<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        discWithBoldBorder<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Coral<span style='color:#800080; '>;</span>
        discWithBoldBorder<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Blue<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>discWithBoldBorder<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add colored disc with bold border</span>
        <span style='color:#800000; font-weight:bold; '>for</span> <span style='color:#808030; '>(</span><span style='color:#800000; font-weight:bold; '>int</span> i <span style='color:#808030; '>=</span> <span style='color:#008c00; '>30</span><span style='color:#800080; '>;</span> i <span style='color:#808030; '>></span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>0</span><span style='color:#800080; '>;</span> i <span style='color:#808030; '>=</span> i <span style='color:#808030; '>-</span> <span style='color:#008c00; '>3</span><span style='color:#808030; '>)</span>
        <span style='color:#800080; '>{</span>
            CircleElement coloredDisc <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> CircleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>310</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>,</span> i <span style='color:#808030; '>=</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>0</span> ? <span style='color:#008c00; '>1</span> <span style='color:#808030; '>:</span> i<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
            coloredDisc<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>3</span><span style='color:#800080; '>;</span>
            <span style='color:#800000; font-weight:bold; '>switch</span> <span style='color:#808030; '>(</span><span style='color:#808030; '>(</span>i <span style='color:#808030; '>/</span> <span style='color:#008c00; '>3</span><span style='color:#808030; '>)</span> <span style='color:#808030; '>%</span> <span style='color:#008c00; '>7</span><span style='color:#808030; '>)</span>
            <span style='color:#800080; '>{</span>
                <span style='color:#800000; font-weight:bold; '>case</span> <span style='color:#008c00; '>0</span><span style='color:#808030; '>:</span>
                    coloredDisc<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Red<span style='color:#800080; '>;</span>
                    <span style='color:#800000; font-weight:bold; '>break</span><span style='color:#800080; '>;</span>
                <span style='color:#800000; font-weight:bold; '>case</span> <span style='color:#008c00; '>1</span><span style='color:#808030; '>:</span>
                    coloredDisc<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Orange<span style='color:#800080; '>;</span>
                    <span style='color:#800000; font-weight:bold; '>break</span><span style='color:#800080; '>;</span>
                <span style='color:#800000; font-weight:bold; '>case</span> <span style='color:#008c00; '>2</span><span style='color:#808030; '>:</span>
                    coloredDisc<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Yellow<span style='color:#800080; '>;</span>
                    <span style='color:#800000; font-weight:bold; '>break</span><span style='color:#800080; '>;</span>
                <span style='color:#800000; font-weight:bold; '>case</span> <span style='color:#008c00; '>3</span><span style='color:#808030; '>:</span>
                    coloredDisc<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Green<span style='color:#800080; '>;</span>
                    <span style='color:#800000; font-weight:bold; '>break</span><span style='color:#800080; '>;</span>
                <span style='color:#800000; font-weight:bold; '>case</span> <span style='color:#008c00; '>4</span><span style='color:#808030; '>:</span>
                    coloredDisc<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Blue<span style='color:#800080; '>;</span>
                    <span style='color:#800000; font-weight:bold; '>break</span><span style='color:#800080; '>;</span>
                <span style='color:#800000; font-weight:bold; '>case</span> <span style='color:#008c00; '>5</span><span style='color:#808030; '>:</span>
                    coloredDisc<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Indigo<span style='color:#800080; '>;</span>
                    <span style='color:#800000; font-weight:bold; '>break</span><span style='color:#800080; '>;</span>
                <span style='color:#800000; font-weight:bold; '>case</span> <span style='color:#008c00; '>6</span><span style='color:#808030; '>:</span>
                    coloredDisc<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Violet<span style='color:#800080; '>;</span>
                    <span style='color:#800000; font-weight:bold; '>break</span><span style='color:#800080; '>;</span>
                <span style='color:#800000; font-weight:bold; '>default</span><span style='color:#808030; '>:</span>
                    <span style='color:#800000; font-weight:bold; '>break</span><span style='color:#800080; '>;</span>
            <span style='color:#800080; '>}</span>
            addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>coloredDisc<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        <span style='color:#800080; '>}</span>

        <span style='color:#696969; '>// Add a doughnut</span>
        CircleElement exteriorNoBorderDisc <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> CircleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>380</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        exteriorNoBorderDisc<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Coral<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>exteriorNoBorderDisc<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        CircleElement interiorNoBorderDisc <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> CircleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>380</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>15</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        interiorNoBorderDisc<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>White<span style='color:#800080; '>;</span>
        pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>interiorNoBorderDisc<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add a simple disc</span>
        CircleElement simpleDisc <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> CircleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>450</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        simpleDisc<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Green<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>simpleDisc<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPageBounds<span style='color:#808030; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>3</span><span style='color:#800080; '>;</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPdfPage<span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add Ellipse Elements</span>

        <span style='color:#696969; '>// Add section title</span>
        xLocation <span style='color:#808030; '>-</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        yLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>10</span><span style='color:#800080; '>;</span>
        titleTextElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> TextElement<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#800000; '>"</span><span style='color:#0000e6; '>Ellipse Elements</span><span style='color:#800000; '>"</span><span style='color:#808030; '>,</span> titleFont<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        titleTextElement<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Black<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>titleTextElement<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPageBounds<span style='color:#808030; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>10</span><span style='color:#800080; '>;</span>
        xLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPdfPage<span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add an Ellipse Element with default settings</span>
        EllipseElement ellipseElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> EllipseElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>ellipseElement<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add an Ellipse Element with background color and line color</span>
        EllipseElement ellipseWithBackgroundAndBorder <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> EllipseElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>160</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        ellipseWithBackgroundAndBorder<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>LightGray<span style='color:#800080; '>;</span>
        ellipseWithBackgroundAndBorder<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Green<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>ellipseWithBackgroundAndBorder<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Create an ellipse from multiple Ellipse Arc Elements</span>
        EllipseArcElement ellipseArcElement1 <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> EllipseArcElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>220</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>0</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        ellipseArcElement1<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Coral<span style='color:#800080; '>;</span>
        ellipseArcElement1<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>3</span><span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>ellipseArcElement1<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        EllipseArcElement ellipseArcElement2 <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> EllipseArcElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>220</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        ellipseArcElement2<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Blue<span style='color:#800080; '>;</span>
        ellipseArcElement2<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>3</span><span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>ellipseArcElement2<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        EllipseArcElement ellipseArcElement3 <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> EllipseArcElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>220</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>180</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        ellipseArcElement3<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Green<span style='color:#800080; '>;</span>
        ellipseArcElement3<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>3</span><span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>ellipseArcElement3<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        EllipseArcElement ellipseArcElement4 <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> EllipseArcElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>220</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>270</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        ellipseArcElement4<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Violet<span style='color:#800080; '>;</span>
        ellipseArcElement4<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>3</span><span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>ellipseArcElement4<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Create an ellipse from multiple Ellipse Slice Elements</span>
        EllipseSliceElement ellipseSliceElement1 <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> EllipseSliceElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>330</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>0</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>90</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        ellipseSliceElement1<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Coral<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>ellipseSliceElement1<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        EllipseSliceElement ellipseSliceElement2 <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> EllipseSliceElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>330</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>90</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>90</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        ellipseSliceElement2<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Blue<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>ellipseSliceElement2<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        EllipseSliceElement ellipseSliceElement3 <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> EllipseSliceElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>330</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>180</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>90</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        ellipseSliceElement3<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Green<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>ellipseSliceElement3<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        EllipseSliceElement ellipseSliceElement4 <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> EllipseSliceElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>330</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>270</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>90</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        ellipseSliceElement4<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Violet<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>ellipseSliceElement4<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add an Ellipse Element with background</span>
        EllipseElement ellipseWithBackground <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> EllipseElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>490</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>30</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        ellipseWithBackground<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Green<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>ellipseWithBackground<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPageBounds<span style='color:#808030; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>3</span><span style='color:#800080; '>;</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPdfPage<span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add Rectangle Elements</span>

        <span style='color:#696969; '>// Add section title</span>
        xLocation <span style='color:#808030; '>-</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        yLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>10</span><span style='color:#800080; '>;</span>
        titleTextElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> TextElement<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#800000; '>"</span><span style='color:#0000e6; '>Rectangle Elements</span><span style='color:#800000; '>"</span><span style='color:#808030; '>,</span> titleFont<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        titleTextElement<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Black<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>titleTextElement<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPageBounds<span style='color:#808030; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>10</span><span style='color:#800080; '>;</span>
        xLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPdfPage<span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add a Rectangle Element with default settings</span>
        RectangleElement rectangleElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> RectangleElement<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>rectangleElement<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add a Rectangle Element with background color and dotted line</span>
        RectangleElement rectangleElementWithDottedLine <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> RectangleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>110</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        rectangleElementWithDottedLine<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>LightGray<span style='color:#800080; '>;</span>
        rectangleElementWithDottedLine<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Green<span style='color:#800080; '>;</span>
        rectangleElementWithDottedLine<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineDashStyle <span style='color:#808030; '>=</span> LineDashStyle<span style='color:#808030; '>.</span>Dot<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>rectangleElementWithDottedLine<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add a Rectangle Element with background color without border</span>
        RectangleElement rectangleElementWithoutBorder <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> RectangleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>220</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        rectangleElementWithoutBorder<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Green<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>rectangleElementWithoutBorder<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add a Rectangle Element with background color, bold border line and rounded corners</span>
        RectangleElement rectangleElementWithRoundedCorners <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> RectangleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>330</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>60</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        rectangleElementWithRoundedCorners<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Coral<span style='color:#800080; '>;</span>
        rectangleElementWithRoundedCorners<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Blue<span style='color:#800080; '>;</span>
        rectangleElementWithRoundedCorners<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        rectangleElementWithRoundedCorners<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineJoinStyle <span style='color:#808030; '>=</span> LineJoinStyle<span style='color:#808030; '>.</span>RoundJoin<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>rectangleElementWithRoundedCorners<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPageBounds<span style='color:#808030; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>3</span><span style='color:#800080; '>;</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPdfPage<span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add Polygon Elements</span>

        <span style='color:#696969; '>// Add section title</span>
        xLocation <span style='color:#808030; '>-</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        yLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>10</span><span style='color:#800080; '>;</span>
        titleTextElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> TextElement<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#800000; '>"</span><span style='color:#0000e6; '>Polygon Elements</span><span style='color:#800000; '>"</span><span style='color:#808030; '>,</span> titleFont<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        titleTextElement<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Black<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>titleTextElement<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPageBounds<span style='color:#808030; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>10</span><span style='color:#800080; '>;</span>
        xLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPdfPage<span style='color:#800080; '>;</span>

        PointF<span style='color:#808030; '>[</span><span style='color:#808030; '>]</span> polygonElementPoints <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>[</span><span style='color:#808030; '>]</span><span style='color:#800080; '>{</span>
            <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span>
            <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>,</span>
            <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span>
            <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>)</span>
        <span style='color:#800080; '>}</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add a Polygon Element with default settings</span>
        PolygonElement polygonElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> PolygonElement<span style='color:#808030; '>(</span>polygonElementPoints<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>polygonElement<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        polygonElementPoints <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>[</span><span style='color:#808030; '>]</span><span style='color:#800080; '>{</span>
            <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>110</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span>
            <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>160</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>,</span>
            <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>210</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span>
            <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>160</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>)</span>
        <span style='color:#800080; '>}</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add a Polygon Element with background color and border</span>
        polygonElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> PolygonElement<span style='color:#808030; '>(</span>polygonElementPoints<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        polygonElement<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>LightGray<span style='color:#800080; '>;</span>
        polygonElement<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Green<span style='color:#800080; '>;</span>
        polygonElement<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineDashStyle <span style='color:#808030; '>=</span> LineDashStyle<span style='color:#808030; '>.</span>Dot<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>polygonElement<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        polygonElementPoints <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>[</span><span style='color:#808030; '>]</span><span style='color:#800080; '>{</span>
            <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>220</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span>
            <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>270</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>,</span>
            <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>320</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span>
            <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>270</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>)</span>
        <span style='color:#800080; '>}</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add a Polygon Element with background color</span>
        polygonElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> PolygonElement<span style='color:#808030; '>(</span>polygonElementPoints<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        polygonElement<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Green<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>polygonElement<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        PointF<span style='color:#808030; '>[</span><span style='color:#808030; '>]</span> polyFillPoints <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>[</span><span style='color:#808030; '>]</span><span style='color:#800080; '>{</span>
            <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>330</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span>
            <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>380</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>)</span><span style='color:#808030; '>,</span>
            <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>430</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#808030; '>,</span>
            <span style='color:#800000; font-weight:bold; '>new</span> PointF<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>380</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>)</span>
        <span style='color:#800080; '>}</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add a Polygon Element with background color and rounded line joins</span>
        PolygonElement polygonElementWithBackgruondColorAndBorder <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> PolygonElement<span style='color:#808030; '>(</span>polyFillPoints<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        polygonElementWithBackgruondColorAndBorder<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Blue<span style='color:#800080; '>;</span>
        polygonElementWithBackgruondColorAndBorder<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Coral<span style='color:#800080; '>;</span>
        polygonElementWithBackgruondColorAndBorder<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        polygonElementWithBackgruondColorAndBorder<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineCapStyle <span style='color:#808030; '>=</span> LineCapStyle<span style='color:#808030; '>.</span>RoundCap<span style='color:#800080; '>;</span>
        polygonElementWithBackgruondColorAndBorder<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineJoinStyle <span style='color:#808030; '>=</span> LineJoinStyle<span style='color:#808030; '>.</span>RoundJoin<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>polygonElementWithBackgruondColorAndBorder<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPageBounds<span style='color:#808030; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>3</span><span style='color:#800080; '>;</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPdfPage<span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add Bezier Curve Elements</span>

        <span style='color:#696969; '>// Add section title</span>
        xLocation <span style='color:#808030; '>-</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        yLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>10</span><span style='color:#800080; '>;</span>
        titleTextElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> TextElement<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#800000; '>"</span><span style='color:#0000e6; '>Bezier Curve Elements</span><span style='color:#800000; '>"</span><span style='color:#808030; '>,</span> titleFont<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        titleTextElement<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Black<span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>titleTextElement<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        yLocation <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPageBounds<span style='color:#808030; '>.</span>Bottom <span style='color:#808030; '>+</span> <span style='color:#008c00; '>10</span><span style='color:#800080; '>;</span>
        xLocation <span style='color:#808030; '>+</span><span style='color:#808030; '>=</span> <span style='color:#008c00; '>5</span><span style='color:#800080; '>;</span>
        pdfPage <span style='color:#808030; '>=</span> addElementResult<span style='color:#808030; '>.</span>EndPdfPage<span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add a Bezier Curve Element with normal style</span>

        BezierCurveElement bezierCurveElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> BezierCurveElement<span style='color:#808030; '>(</span>xLocation<span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span>
                    xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>150</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        bezierCurveElement<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Blue<span style='color:#800080; '>;</span>
        bezierCurveElement<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>3</span><span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>bezierCurveElement<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Mark the points controlling the Bezier curve</span>
        CircleElement controlPoint1 <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> CircleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>200</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>2</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        controlPoint1<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Violet<span style='color:#800080; '>;</span>
        pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>controlPoint1<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        CircleElement controlPoint2 <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> CircleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>250</span><span style='color:#808030; '>,</span> yLocation<span style='color:#808030; '>,</span> <span style='color:#008c00; '>2</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        controlPoint2<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Violet<span style='color:#800080; '>;</span>
        pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>controlPoint2<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        CircleElement controlPoint3 <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> CircleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>300</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>100</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>2</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        controlPoint3<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Violet<span style='color:#800080; '>;</span>
        pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>controlPoint3<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        CircleElement controlPoint4 <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> CircleElement<span style='color:#808030; '>(</span>xLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>350</span><span style='color:#808030; '>,</span> yLocation <span style='color:#808030; '>+</span> <span style='color:#008c00; '>50</span><span style='color:#808030; '>,</span> <span style='color:#008c00; '>2</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        controlPoint4<span style='color:#808030; '>.</span>BackColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Violet<span style='color:#800080; '>;</span>
        pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>controlPoint4<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Add a Bezier Curve Element with dotted line using the controlling points above</span>

        bezierCurveElement <span style='color:#808030; '>=</span> <span style='color:#800000; font-weight:bold; '>new</span> BezierCurveElement<span style='color:#808030; '>(</span>controlPoint1<span style='color:#808030; '>.</span>X<span style='color:#808030; '>,</span> controlPoint1<span style='color:#808030; '>.</span>Y<span style='color:#808030; '>,</span> controlPoint2<span style='color:#808030; '>.</span>X<span style='color:#808030; '>,</span> controlPoint2<span style='color:#808030; '>.</span>Y<span style='color:#808030; '>,</span>
                    controlPoint3<span style='color:#808030; '>.</span>X<span style='color:#808030; '>,</span> controlPoint3<span style='color:#808030; '>.</span>Y<span style='color:#808030; '>,</span> controlPoint4<span style='color:#808030; '>.</span>X<span style='color:#808030; '>,</span> controlPoint4<span style='color:#808030; '>.</span>Y<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
        bezierCurveElement<span style='color:#808030; '>.</span>ForeColor <span style='color:#808030; '>=</span> Color<span style='color:#808030; '>.</span>Green<span style='color:#800080; '>;</span>
        bezierCurveElement<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineDashStyle <span style='color:#808030; '>=</span> LineDashStyle<span style='color:#808030; '>.</span>Dot<span style='color:#800080; '>;</span>
        bezierCurveElement<span style='color:#808030; '>.</span>LineStyle<span style='color:#808030; '>.</span>LineWidth <span style='color:#808030; '>=</span> <span style='color:#008c00; '>1</span><span style='color:#800080; '>;</span>
        addElementResult <span style='color:#808030; '>=</span> pdfPage<span style='color:#808030; '>.</span>AddElement<span style='color:#808030; '>(</span>bezierCurveElement<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Save the PDF document in a memory buffer</span>
        <span style='color:#800000; font-weight:bold; '>byte</span><span style='color:#808030; '>[</span><span style='color:#808030; '>]</span> outPdfBuffer <span style='color:#808030; '>=</span> pdfDocument<span style='color:#808030; '>.</span>Save<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Send the PDF as response to browser</span>

        <span style='color:#696969; '>// Set response content type</span>
        Response<span style='color:#808030; '>.</span>AddHeader<span style='color:#808030; '>(</span><span style='color:#800000; '>"</span><span style='color:#0000e6; '>Content-Type</span><span style='color:#800000; '>"</span><span style='color:#808030; '>,</span> <span style='color:#800000; '>"</span><span style='color:#0000e6; '>application/pdf</span><span style='color:#800000; '>"</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Instruct the browser to open the PDF file as an attachment or inline</span>
        Response<span style='color:#808030; '>.</span>AddHeader<span style='color:#808030; '>(</span><span style='color:#800000; '>"</span><span style='color:#0000e6; '>Content-Disposition</span><span style='color:#800000; '>"</span><span style='color:#808030; '>,</span> String<span style='color:#808030; '>.</span>Format<span style='color:#808030; '>(</span><span style='color:#800000; '>"</span><span style='color:#0000e6; '>attachment; filename=Graphic_Elements.pdf; size={0}</span><span style='color:#800000; '>"</span><span style='color:#808030; '>,</span> outPdfBuffer<span style='color:#808030; '>.</span>Length<span style='color:#808030; '>.</span>ToString<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#808030; '>)</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// Write the PDF document buffer to HTTP response</span>
        Response<span style='color:#808030; '>.</span>BinaryWrite<span style='color:#808030; '>(</span>outPdfBuffer<span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>

        <span style='color:#696969; '>// End the HTTP response and stop the current page processing</span>
        Response<span style='color:#808030; '>.</span>End<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
    <span style='color:#800080; '>}</span>
    <span style='color:#800000; font-weight:bold; '>finally</span>
    <span style='color:#800080; '>{</span>
        <span style='color:#696969; '>// Close the PDF document</span>
        pdfDocument<span style='color:#808030; '>.</span>Close<span style='color:#808030; '>(</span><span style='color:#808030; '>)</span><span style='color:#800080; '>;</span>
    <span style='color:#800080; '>}</span>
<span style='color:#800080; '>}</span>
</pre>
</span>